package cn.jeeweb.web.modules.sys.entity;

import cn.jeeweb.common.annotate.UiPropertyField;
import cn.jeeweb.common.flag.ObjectMark;
import cn.jeeweb.common.mvc.entity.DataEntity;
import cn.xjzn.framework_Core.ModuleServe;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableField;

/**
 * @package cn.jeewe.bbs.entity
 * @title: sys_location实体
 * @description: sys_location实体
 */

@TableName("sys_location")
@SuppressWarnings("serial")
public class SysLocation extends DataEntity<String> implements ObjectMark {

    /**code*/
    @TableField(value = "code")
	@UiPropertyField(moduleId = ModuleServe.sysLocationModule,propertyName = "code",labelText="编码",displayPosition = 1)
	private String code;
    /**name*/
    @TableField(value = "name")
	@UiPropertyField(moduleId = ModuleServe.sysLocationModule,propertyName = "name",labelText="名称",displayPosition = 2)
	private String name;
    /**organization_id*/
    @TableField(value = "organization_id")
	@UiPropertyField(moduleId = ModuleServe.sysLocationModule,propertyName="id",aliasName = "organizationId",ownerPropertyName = "organization",isReference = 1,referenceModuleId =ModuleServe.organizationModule,labelText="组织机构名称",displayPosition = 3)
	private String organizationId;

	@TableField(exist = false)
	private Organization organization;
    /**sort*/
    @TableField(value = "sort")
	@UiPropertyField(moduleId = ModuleServe.sysLocationModule,propertyName = "sort",labelText="排序",displayPosition = 4)
	private Integer sort;
	@TableField(exist = false)
	private String[] ids;//

	
	/**
	 * 获取  code
	 *@return String  code
	 */
	public String getCode(){
		return this.code;
	}

	/**
	 * 设置  code
	 *@param code  code
	 */
	public void setCode(String code){
		this.code = code;
	}
	/**
	 * 获取  name
	 *@return String  name
	 */
	public String getName(){
		return this.name;
	}

	/**
	 * 设置  name
	 *@param name  name
	 */
	public void setName(String name){
		this.name = name;
	}
	/**
	 * 获取  organizationId
	 *@return String  organization_id
	 */
	public String getOrganizationId(){
		return this.organizationId;
	}

	/**
	 * 设置  organizationId
	 *@param organizationId  organization_id
	 */
	public void setOrganizationId(String organizationId){
		this.organizationId = organizationId;
	}
	/**
	 * 获取  sort
	 *@return Integer  sort
	 */
	public Integer getSort(){
		return this.sort;
	}

	/**
	 * 设置  sort
	 *@param sort  sort
	 */
	public void setSort(Integer sort){
		this.sort = sort;
	}

	public String[] getIds() {
		return ids;
	}

	public void setIds(String[] ids) {
		this.ids = ids;
	}

	public Organization getOrganization() {
		return organization;
	}

	public void setOrganization(Organization organization) {
		this.organization = organization;
	}
}